{% extends 'app01/base.html' %}
{% load tags %}
{% block body %}

  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Project name</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#">{{ request.user }}</a></li>

          </ul>

        </div>
      </div>
    </nav>

    <!-- web body -->

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li class="active"><a href="#">admin页面 <span class="sr-only">(current)</span></a></li>
            <li><a href="#">Reports</a></li>
            <li><a href="#">Analytics</a></li>
            <li><a href="#"></a></li>
          </ul>
        </div>

        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">

        <!-- {app01:{model:adminmodel,model02:adminmodel02}} -->
            {% for appname,model_dict in table_list.items %}
            <div class="btn-primary btn-lg">{{ appname }}</div>
            <div class="table-responsive">
            <table class="table table-striped">
{#              <thead>#}
{#                <tr>#}
{#                  <th>#</th>#}
{#                </tr>#}
{#              </thead>#}
              <tbody>
                    {% for model,modeladmin in model_dict.items %}
                        <tr>
                        <td><a class="info" href="{{ appname }}/{{ model }}">{{ modeladmin }}</a></td>
                        <td><a class="info" href="{% url 'views_show' appname model %}">{{ modeladmin }}</a></td>

                            <td>{{ modeladmin.list_display }}</td>
{#                            <td>{{ modeladmin.model }}</td>#}
{#                            <td>{{ modeladmin._meta.verbose_name_plural }}</td>#}
                            <td>{% render_app_name  modeladmin %}</td>
                            <td>edit</td>
                        </tr>
                    {% endfor %}
              </tbody>
            </table>
          </div>
            {% endfor %}

        </div>  <!-- end  colsm9 -->








      </div>
    </div>




</body>

{% endblock %}